-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tools: Clean up documentation previews #130
Tools: Clean up documentation previews #130
Conversation
Delete preview
📚 Documentation Preview ✅ A preview of the documentation changes in this PR is available for maintainers at: Last updated: 2025-01-15 22:42 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the cleanup 🙌 .
I requested one style change to match the existing arbitrary convention. In addition, I added some comments to consider, but most of them are non-blocking.
runs: | ||
using: 'composite' | ||
steps: | ||
- id: set-vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Please change to set_vars
to match the existing arbitrary convention.
export PATH="$HOME/miniconda/bin:$PATH" | ||
source activate tbp.monty | ||
echo "monty_version=$(python -m tools.print_version.cli minor)" >> $GITHUB_OUTPUT | ||
echo "BRANCH_NAME=${{ github.event.pull_request.user.login }}-$(echo ${GITHUB_HEAD_REF} | tr -c '[:alnum:]' '-' | sed 's/-*$//')" >> $GITHUB_OUTPUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note (non-blocking): I wonder if passing in the username as explicit input might be more robust than assuming the github.event.pull_request.user.login
will always resolve to something where this action is used.
cleanup_docs_preview: | ||
name: cleanup-docs-preview | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (non-blocking): It seems to me that even if the pull request was not merged, the cleanup should occur.
note to self: Observing documentation preview because |
Delete preview
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for the updates.
This PR creates a new action to delete documentation previews from Readme.com.
This PR also changes the naming structure of the preview URLs to namespace with a username prefix.
This branch is called
main2
as I was using that as the main branch in my fork to test the PR closing trigger.